package cn.zhl.tree;

import java.util.Comparator;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-04-14 14:19
 **/
public class PersonComparator implements Comparator<Person> {
	@Override
	public int compare(Person o1, Person o2) {
		return o1.getAge() - o2.getAge();
	}
}
